<h1>Listing tickets</h1>

<table>
  <tr>
    <th>Movie genere</th>
    <th>Numasiento</th>
    <th>Passenger</th>
    <th>Trip</th>
    <th>Food type</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @tickets.each do |ticket| %>
  <tr>
    <td><%= ticket.movie_genere_id %></td>
    <td><%= ticket.numAsiento %></td>
    <td><%= ticket.passenger_id %></td>
    <td><%= ticket.trip_id %></td>
    <td><%= ticket.food_type_id %></td>
    <td><%= link_to 'Show', ticket %></td>
    <td><%= link_to 'Edit', edit_ticket_path(ticket) %></td>
    <td><%= link_to 'Destroy', ticket, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Ticket', new_ticket_path %>
